<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Web Solutions
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/05/28 21:56:36 $)
// $RCSfile: staff_comments.php,v $ : $Revision: 1.4 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!defined("INSWIFT")) {
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

if ($_SWIFT["staff"]["dl_entab"] == "0")
{
	echo '<font face="Verdana, Arial, Helvetica" size="2" color="red"><b>'.$_SWIFT["language"]["nopermission"].'</b></font>';
	exit;
}

require_once ("./modules/downloads/functions_downloads.php");
require_once ("./includes/functions_html.php");
require_once ("./includes/functions_users.php");
require_once ("./includes/functions_jscache.php");
require_once ("./includes/functions_comments.php");
$template->loadLanguageSection("downloads");

$interface->assignQuickLink($_SWIFT["language"]["managecategories"], "index.php?_m=downloads&_a=managecategories", "icon_list.gif");
$interface->assignQuickLink($_SWIFT["language"]["managefiles"], "index.php?_m=downloads&_a=managefiles", "icon_managefiles.gif");
$interface->assignQuickLink($_SWIFT["language"]["insertcategory"], "index.php?_m=downloads&_a=insertcategory", "icon_newcategory.gif");
$interface->assignQuickLink($_SWIFT["language"]["insertfile"], "index.php?_m=downloads&_a=insertfile", "icon_insertfile.gif");

renderCategoryList();

/**
* ###############################################
* COMMENTS
* ###############################################
*/
if ($eventaction == "comments")
{
	$interface->staffHeader($_SWIFT["language"]["downloads"]." &gt; ".$_SWIFT["language"]["comments"], 5);

	$interface->staffNavBar('<a href="index.php?_m=downloads&_a=managefiles" title="'.$_SWIFT["language"]["managefiles"].'">'.$_SWIFT["language"]["managefiles"].'</a> &raquo; <a href="index.php?_m=downloads&_a=comments" title="'.$_SWIFT["language"]["comments"].'">'.$_SWIFT["language"]["comments"].'</a>', "", 5);
	renderCommentGrids(COMMENT_DOWNLOADS);
	
	$interface->staffFooter();
}
?>